<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_builder.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:19 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>{$sysname} - 编辑管理员</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <style>
        .droppable-active{background-color:#ffe!important}.tools a{cursor:pointer;font-size:80%}.form-body .col-md-6,.form-body .col-md-12{min-height:400px}.draggable{cursor:move}
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">

    <div class="row">
        <div class="col-sm-5" style="width: 100%">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>编辑管理员</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_editors.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form role="form" class="form-horizontal m-t" action="{:U('User/admineditdone')}" method="post" id="sysForm"  name="sysForm" enctype="multipart/form-data">


                        <foreach name="admininfo" item="item">

                            <div class="form-group draggable">
                                <label class="col-sm-3 control-label">管理员账号：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="adminname" value=""  class="form-control" readonly placeholder="{$item.name}">
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>

                            <div class="form-group draggable">
                                <label class="col-sm-3 control-label">管理员密码：</label>
                                <div class="col-sm-9">
                                    <input type="text" name="adminpass" value="" class="form-control" placeholder="******">
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>

                        <div class="form-group draggable">
                            <label class="col-sm-3 control-label">超级管理员：
                            </label>
                            <input type="hidden" value="{$item.adminpower}" id="issupper">
                            <div class="col-sm-9">
                                <label class="radio-inline">
                                    <input type="radio"  value="1" onclick="check('yes')" id="ischeck1" name="issupper" <if condition="$item.adminpower eq  0"> checked </if>>是</label>
                                <label class="radio-inline">
                                    <input type="radio"  value="2" onclick="check('no')"   id="ischeck2" name="issupper" <if condition="$item.adminpower neq  0"> checked </if> >否</label>
                            </div>
                        </div>

                        <div class="form-group draggable" id="power">
                            <label class="col-sm-3 control-label">管理权限：</label>
                            <div class="col-sm-9" style="width: 400px">
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="1" name="adminpower[]"<if condition="$adminpower1 == 1">checked</if>>会员管理</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="2" name="adminpower[]"<if condition="$adminpower2 == 1">checked</if>>资金明细</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="3" name="adminpower[]"<if condition="$adminpower3 == 1">checked</if>>团队结构</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="9" name="adminpower[]"<if condition="$adminpower9 == 1">checked</if>>捐赠列表</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="4" name="adminpower[]"<if condition="$adminpower4 == 1">checked</if>>业绩大比拼</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="5" name="adminpower[]"<if condition="$adminpower5 == 1">checked</if>>推荐结构</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="6" name="adminpower[]"<if condition="$adminpower6 == 1">checked</if>>推荐列表</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="7" name="adminpower[]"<if condition="$adminpower7 == 1">checked</if>>系统公告</label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" value="8" name="adminpower[]"<if condition="$adminpower8 == 1">checked</if>>留言反馈</label>

                            </div>

                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group draggable">
                            <div class="col-sm-12 col-sm-offset-3">
                                <input type="hidden" value="{$item.id}" name="adminid">
                                <input class="btn btn-primary" type="submit" value="保存内容">
                                <a class="btn btn-white" href="{:U('User/adminset')}">取消</a>
                            </div>
                        </div>

                        </foreach>
                    </form>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" >
    var ischeck = document.getElementById("issupper").value;
    if(ischeck == 0){
        document.getElementById("power").style.display = "none"
    }
    function check(yn){
        if(yn == "yes"){
            $("#power").hide()
        }else{
            $("#power").show()
        }
    }
</script>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script src="js/jquery-ui-1.10.4.min.js"></script>
<script src="js/plugins/beautifyhtml/beautifyhtml.js"></script>
<script>
    $(document).ready(function(){
        setup_draggable();
        $("#n-columns").on("change",function(){
            var v=$(this).val();
            if(v==="1"){
                var $col=$(".form-body .col-md-12").toggle(true);
                $(".form-body .col-md-6 .draggable").each(function(i,el){
                    $(this).remove().appendTo($col)
                });
                $(".form-body .col-md-6").toggle(false)
            }else{
                var $col=$(".form-body .col-md-6").toggle(true);
                $(".form-body .col-md-12 .draggable").each(function(i,el){
                    $(this).remove().appendTo(i%2?$col[1]:$col[0])});
                $(".form-body .col-md-12").toggle(false)}
        })
    })

</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_builder.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:20 GMT -->
</html>
